/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-16
 * Time: 16:38
 */
public class Course {
    private String cID;
    private String cName;
    private int cNum;

    public static int num = 0;
    {
        cNum = ++num;
    }
    public Course(){
        System.out.println("课程类无参构造方法");
    }
    public Course(String id, String name){
        cID = id;
        cName = name;
        System.out.println("课程类有参构造方法");
    }

    public String getcID() {
        return cID;
    }
    public String getcName() {
        return cName;
    }
    public int getcNum() {
        return cNum;
    }
    public void setcID(String cID) {
        this.cID = cID;
    }
    public void setcName(String cName) {
        this.cName = cName;
    }

//    @Override
//    public String toString() {
//        return cID+"\t"+cName;
//    }
}
